/*
*编写程序判断两个数组是否相等
*然后编写一段类似的代码比较两个vector
*/
#include <iostream>
#include <vector>
using namespace std;

int main()
{

	//比较两个数组是否相等
	int iAry1[3] = {2,3,4};
	int iAry2[3] = {2,3,4};
	cout << "iAry1[3] = {2,3,4}" << endl;
	cout << "iAry2[3] = {2,3,4}" << endl;
	if(iAry1 == iAry2)
	{
		cout << "iAry1 = iAry2";
	}
	else
	{
		cout << "iAry1 != iAry2";
	}

	cout << endl;

	//比较两个vector是否相等
	vector<int> ivec1(10,9);
	vector<int> ivec2(10,9);

	cout << "vector<int> ivec1(10,9)" << endl;
	cout << "vector<int> ivec2(10,9)" << endl;
	if(ivec1 == ivec2)
	{
		cout << "ivec1 = ivec2";
	}
	else
	{
		cout << "ivec1 != ivec2";
	}

	cout << endl;
	system("pause");
	return 0;
}
